﻿<%@ Page Title="Editare grad stiintific si didactic" Language="C#" MasterPageFile="~/Administration/Administration.Master" AutoEventWireup="true" CodeBehind="GradDidacticStiintific.aspx.cs" Inherits="IEWebSite.Administration.GradDidacticStiintific" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <h1>Grad didactic</h1>
        <asp:Label ID="lblError" runat="server" ForeColor="#FF9900"></asp:Label>
        <table style="border-width:0; margin-left:50px;">
            <tr>
                <td>
                    &nbsp;Grad didactic:
                </td>
                <td>
                    <asp:TextBox ID="txtGradDidactic" runat="server" Width="450px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="GradDidBtnAdd" runat="server" Text="Adauga" 
                        OnClick="GradDidBtnAdd_Click" BackColor="#990000" Font-Bold="True" 
                        ForeColor="White" />
                </td>
            </tr>
        </table>
        <h1>
            Stergere/Editare grade didactice</h1>
        <div style="margin-left: 50px;">
            <asp:GridView ID="gradDidGvName" runat="server" AllowPaging="True" AllowSorting="True"
                AutoGenerateColumns="False" CellPadding="4" DataSourceID="sqlGetGrdDid" ForeColor="#333333"
                GridLines="None" PageSize="5" DataKeyNames="IdSysTitluDidactic">
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    <asp:BoundField DataField="IdSysTitluDidactic" HeaderText="ID" ReadOnly="True" 
                        SortExpression="IdSysTitluDidactic" InsertVisible="False" Visible="True"/>
                    <asp:BoundField DataField="TitluDidactic" HeaderText="Grad didactic" SortExpression="TitluDidactic" />
                </Columns>
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:SqlDataSource ID="sqlGetGrdDid" runat="server" ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>"
                SelectCommand="SELECT SysTitluDidactic.IdSysTitluDidactic, SysTitluDidactic.TitluDidactic FROM SysTitluDidactic"
                DeleteCommand="DELETE FROM SysTitluDidactic WHERE (IdSysTitluDidactic = @IdSysTitluDidactic)" 
                InsertCommand="INSERT INTO [SysTitluDidactic] ([TitluDidactic]) VALUES (@TitluDidactic)"
                UpdateCommand="UPDATE SysTitluDidactic SET TitluDidactic = @TitluDidactic WHERE (IdSysTitluDidactic = @IdSysTitluDidactic)">
                <DeleteParameters>
                    <asp:Parameter Name="IdSysTitluDidactic" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="TitluDidactic" Type="String" />
                    <asp:Parameter Name="IdSysTitluDidactic" Type="Int32" />
                </UpdateParameters>
                <InsertParameters>
                    <asp:Parameter Name="TitluDidactic" Type="String" />
                </InsertParameters>
            </asp:SqlDataSource>
        </div>
        <h1>Grad stiintific</h1>
        <table style="border-width:0; margin-left:50px;">
            <tr>
                <td>
                    &nbsp;Grad stiintific:
                </td>
                <td>
                    <asp:TextBox ID="txtGrdStiintific" runat="server" Width="450px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="GradStiintBtnAdd" runat="server" Text="Adauga" 
                        OnClick="GradStiintBtnAdd_Click" BackColor="#990000" Font-Bold="True" 
                        ForeColor="White" />
                </td>
            </tr>
        </table>
        <h1>
            Stergere/Editare grade stiintifice</h1>
        <div style="margin-left: 50px;">
            <asp:GridView ID="grdvGrdStiint" runat="server" AllowPaging="True" AllowSorting="True"
                AutoGenerateColumns="False" CellPadding="4" DataSourceID="sqlGetGrdStiint" ForeColor="#333333"
                GridLines="None" PageSize="5" DataKeyNames="IdSysTitluStiintific">
                <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                <Columns>
                    <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    <asp:BoundField DataField="IdSysTitluStiintific" HeaderText="ID" ReadOnly="True" 
                        SortExpression="IdSysTitluStiintific" InsertVisible="False" Visible="True"/>
                    <asp:BoundField DataField="TitluStiintific" HeaderText="Grad stiintific" SortExpression="TitluStiintific" />
                </Columns>
                <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:SqlDataSource ID="sqlGetGrdStiint" runat="server" ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>"
                SelectCommand="SELECT SysTitluStiintific.IdSysTitluStiintific, SysTitluStiintific.TitluStiintific FROM SysTitluStiintific"
                DeleteCommand="DELETE FROM SysTitluStiintific WHERE (IdSysTitluStiintific = @IdSysTitluStiintific)" 
                InsertCommand="INSERT INTO [SysTitluStiintific] ([TitluStiintific]) VALUES (@TitluStiintific)"
                UpdateCommand="UPDATE SysTitluStiintific SET TitluStiintific = @TitluStiintific WHERE (IdSysTitluStiintific = @IdSysTitluStiintific)">
                <DeleteParameters>
                    <asp:Parameter Name="IdSysTitluStiintific" />
                </DeleteParameters>
                <UpdateParameters>
                    <asp:Parameter Name="TitluStiintific" Type="String" />
                    <asp:Parameter Name="IdSysTitluStiintific" Type="Int32" />
                </UpdateParameters>
                <InsertParameters>
                    <asp:Parameter Name="TitluStiintific" Type="String" />
                </InsertParameters>
            </asp:SqlDataSource>
        </div>
</asp:Content>
